﻿using System.Web.Mvc;
using System.Web.Routing;
using Nop.Web.Framework.Mvc.Routes;

namespace Nop.Plugin.Payments.LibraPay
{
	public partial class RouteProvider : IRouteProvider
	{
		public void RegisterRoutes(RouteCollection routes)
		{
			routes.MapRoute("Plugin.Payments.LibraPay.Configure",
				 "Plugins/PaymentLibraPay/Configure",
				 new { controller = "PaymentLibraPay", action = "Configure" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);

			routes.MapRoute("Plugin.Payments.LibraPay.PaymentInfo",
				 "Plugins/PaymentLibraPay/PaymentInfo",
				 new { controller = "PaymentLibraPay", action = "PaymentInfo" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);

			routes.MapRoute("Plugin.Payments.LibraPay.AuthorizeRequest",
				 "Plugins/PaymentLibraPay/AuthorizeRequest",
				 new { controller = "PaymentLibraPay", action = "AuthorizeRequest" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);
			routes.MapRoute("Plugin.Payments.LibraPay.Authorize",
				 "Plugins/PaymentLibraPay/Authorize",
				 new { controller = "PaymentLibraPay", action = "Authorize" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);
			routes.MapRoute("Plugin.Payments.LibraPay.Authorize_IPN",
				 "Plugins/PaymentLibraPay/Authorize_IPN",
				 new { controller = "PaymentLibraPay", action = "Authorize_IPN" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);
			routes.MapRoute("Plugin.Payments.LibraPay.Authorized",
				 "Plugins/PaymentLibraPay/Authorized",
				 new { controller = "PaymentLibraPay", action = "Authorized" },
				 new[] { "Nop.Plugin.Payments.LibraPay.Controllers" }
			);
		}
		public int Priority
		{
			get
			{
				return 0;
			}
		}
	}
}
